<template>
  <div class="app-container" v-loading="loading">

    <table-simple :list="list" :columns="optionData" :save-path="savePath" :api-name="apiName">
      
    </table-simple>
  </div>
</template>

<script>
import commonApi from '@/api/common'
import getListMix from '@/mixins/getListMix'
import TableSimple from '@/components/TableSimple'
export default {
  name: 'integralGradeList',
  components: {
    TableSimple
  },
  data() {
    return {
      list: [],
      apiName: '/admin/core/integralGrade',
      savePath:'/core/integral-grade/save',
      allListApi: commonApi.allList,
      optionData: [
        {
          prop: 'borrowAmount',
          label: '借款额度',
        },
        {
          prop: 'integralStart',
          label: '积分区间开始',
          width: '',
        },
        {
          prop: 'integralEnd',
          label: '积分区间结束',
          width: '',
        },
        {
          prop: 'createTime',
          label: '创建时间',
          width: '',
        },
        {
          prop: 'updateTime',
          label: '更新时间',
          width: '',
        },
      ],
    }
  },
  mixins: [getListMix],
  created() {
    this.getAllList()
  },
  methods: {
    success() {
      this.getAllList()
    }
  },
}
</script>

<style lang="scss" scoped>
</style>